package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 抄送人
 * </p>
 *
 * @author sy
 * @since 2023-07-07
 */
@Getter
@Setter
@TableName("dragon_to_send")
public class ToSend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 流程类型
     */
    private Integer streamType;

    /**
     * 关联主表id
     */
    private Integer correlationId;

    /**
     * 0发起抄送，1审核抄送
     */
    private Integer examineType;

    /**
     * 抄送人
     */
    private Integer toAdmin;

    @TableField(exist = false)
    private Object detail;

    /**
     * 抄送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}
